<?php

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}


require_once libfile('function/core');
require_once libfile('function/date');
require_once libfile('function/database');
require_once libfile('function/vote');

if(empty($_G['uid'])){
	showmessage('to_login', '', array(), array('showmsg' => true, 'login' => 1));
}
// activity_id
$aid = getgpc('aid');
if(empty($aid)){
	exit();
}
$activity = get_activity($aid);

//$sql = ' select u.aid, a.bid_start_day, a.bid_end_day from '.DB::table('vote_user').' u, '.DB::table('vote_activity').'
//		a where u.uid = '.$_G['uid'].' and u.aid = a.id ';
//$entry_activities = query($sql);
//if (!check_entry_status($activity, $entry_activities)) {
//	showmessage(lang('bid/template', 'entry_activity_conflict'), 'bid.php', array(), array('alert' => 'error'));
//}

format_activity($activity);
get_activity_count($activity);

$bid_gold_coin = 0; //竞标金币数量默认是0个。


include_once template("bid/entry");
?>